<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="__PUBLIC__/Css/Admin/Bootstrap/bootstrap.min.css" rel="stylesheet"  >
<link href="__PUBLIC__/Js/jqui/jquery-ui.min.css" rel="stylesheet"  >
<script src='__PUBLIC__/Js/jquery-3.1.0.min.js'></script>
<script src='__PUBLIC__/Js/jqPaginator.js'></script>
<script src='__PUBLIC__/Js/jqui/jquery-ui.min.js'></script>
</head>
<body>
	<h2>文章添加</h2>
	<span id='msg'></span>
	
	<form action="<{:U('addincrease')}>">

	文章分类:
	<select name="type" id="type">
		<option value="0">等级分类</option>
	</select><br />
	标题名称: <input type="text" name='content'/><br />
	<p>文章描述:</p>
	<textarea name="desc" id="desc" cols="30" rows="10">
		
	</textarea>
	  <input type="button" id='next' value='下一步'/>
	</form>
<script>
	$(function(){
		$('#next').click(function(){
		var cate=$('#type :selected').val();
		var name=$("[name='content']").val();
		var ifshow=$("[type='radio']:checked").val();
		var desc=$("#desc").val();
		$.get("<{:U('doaddinc')}>",{lid:cate,content:name},function(data){
			if(data.status==0){
				$('#msg').text(data.msg);
				setTimeout(function(){$('#msg').fadeOut('slow');},2000);
			}else{
				$('form').submit();
			}
		},'json');
		});
		 
	});
	
</script>
  
</body>
</html>